#include "sg90.h"

void sg90_init(void)
{
    RCC_SG90_INIT();
    
    GPIO_InitTypeDef sg90_init_struct = {0};
    
    sg90_init_struct.Pin = PIN_SG90;
    sg90_init_struct.Mode = GPIO_MODE_AF_PP;
    sg90_init_struct.Pull = GPIO_PULLDOWN;
    sg90_init_struct.Speed = GPIO_SPEED_FREQ_HIGH;
    HAL_GPIO_Init(GPIO_SG90, &sg90_init_struct);
}
